package org.dromara.wmscloud.domain.vo;

import org.dromara.wmscloud.domain.BaseUnit;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 物料单位视图对象 base_unit
 *
 * @author hou
 * @date 2025-04-04
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BaseUnit.class)
public class BaseUnitVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long unitId;
    /**
     * 物料单位编码
     */
    @ExcelProperty(value = "物料单位编码")
    private String unitCode;

    /**
     * 物料单位名称
     */
    @ExcelProperty(value = "物料单位名称")
    private String unitName;

    /**
     * 是否是主单位
     */
    @ExcelProperty(value = "是否是主单位")
    private String primaryFlag;

    /**
     * 主单位ID
     */
    private Long primaryUnitId;

    /**
     * 主单位ID
     */
    @ExcelProperty(value = "物料主单位名称")
    private String primaryUnitName;

    /**
     * 与主单位换算比例
     */
    @ExcelProperty(value = "与主单位换算比例")
    private Long changeRate;

    /**
     * 单位状态
     */
    @ExcelProperty(value = "单位状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
